package com.yisu.auction.ewf.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class BalanceLog implements Serializable {

    /**
     * 操作类型
     */
    public enum OperationTypeEnum {
        ADD(1, "添加"),
        MINUS(0, "减去");
        public int code;
        public String name;

        OperationTypeEnum(int code, String name) {
            this.code = code;
            this.name = name;
        }

        public static String OperationTypeEnum(int code) {
            for (OperationTypeEnum item : OperationTypeEnum.values()) {
                if (item.code == code)
                    return item.name;
            }
            return null;
        }
    }


    /**
     * 拍币类型
     */
    public enum WalletTypeEnum {
        WALLET(1, "拍币"),
        PRESENT_WALLET(2, "赠币");
        public int code;
        public String name;

        WalletTypeEnum(int code, String name) {
            this.code = code;
            this.name = name;
        }

        public static String WalletTypeEnum(int code) {
            for (WalletTypeEnum item : WalletTypeEnum.values()) {
                if (item.code == code)
                    return item.name;
            }
            return null;
        }
    }




    private Long id;

    private Long memberId;

    private BigDecimal operateNum;

    private Integer operationType;

    private String operationDesc;

    private BigDecimal beforeWallet;

    private BigDecimal afterWallet;

    private BigDecimal beforePresentWallet;

    private BigDecimal afterPresentWallet;

    private Integer walletType;

    private Long prizeId;

    private Date createDate;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public BigDecimal getOperateNum() {
        return operateNum;
    }

    public void setOperateNum(BigDecimal operateNum) {
        this.operateNum = operateNum;
    }

    public Integer getOperationType() {
        return operationType;
    }

    public void setOperationType(Integer operationType) {
        this.operationType = operationType;
    }

    public String getOperationDesc() {
        return operationDesc;
    }

    public void setOperationDesc(String operationDesc) {
        this.operationDesc = operationDesc;
    }

    public BigDecimal getBeforeWallet() {
        return beforeWallet;
    }

    public void setBeforeWallet(BigDecimal beforeWallet) {
        this.beforeWallet = beforeWallet;
    }

    public BigDecimal getAfterWallet() {
        return afterWallet;
    }

    public void setAfterWallet(BigDecimal afterWallet) {
        this.afterWallet = afterWallet;
    }

    public BigDecimal getBeforePresentWallet() {
        return beforePresentWallet;
    }

    public void setBeforePresentWallet(BigDecimal beforePresentWallet) {
        this.beforePresentWallet = beforePresentWallet;
    }

    public BigDecimal getAfterPresentWallet() {
        return afterPresentWallet;
    }

    public void setAfterPresentWallet(BigDecimal afterPresentWallet) {
        this.afterPresentWallet = afterPresentWallet;
    }

    public Integer getWalletType() {
        return walletType;
    }

    public void setWalletType(Integer walletType) {
        this.walletType = walletType;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getPrizeId() {
        return prizeId;
    }

    public void setPrizeId(Long prizeId) {
        this.prizeId = prizeId;
    }
}